using System.Collections.Generic;

namespace Read.Models
{
    /// <summary>
    /// 树菜单
    /// </summary>
    public class ResultMenuTreeModel
    {
        /// <summary>
        /// Id
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 是否展开
        /// </summary>
        public bool open { get; set; }

        /// <summary>
        /// 记录 treeNode 节点是否为父节点
        /// </summary>
        public bool isParent { get; set; }

        /// <summary>
        /// 是否选择
        /// </summary>
        /// <returns></returns>
        public bool @checked { get; set; }
        
        /// <summary>
        ///children
        /// </summary>
        public List<ResultMenuTreeModel> children = new List<ResultMenuTreeModel>();
    }
}